<?php
/**
 * Created by PhpStorm.
 * Author：D H
 * Date: 2017/7/3
 * Time: 10:06
 */
namespace app\android\controller;
use app\api\logic\User as Users;
use think\Request;
use tool\Common;

class User extends Base{
    //登录
    public function login(){
        return json((new Users($this->request))->login());
    }
    //退出
    public function logout()
    {
        return json((new Users($this->request))->logout());
    }
    //修改密码
    public function replacePassword(){
        return json((new Users($this->request))->replacePassword());
    }

    //修改名称
    public function replaceName(){
        return json((new Users($this->request))->replaceName());
    }
    //修改头像
    public function replacePhoto(){
        return json((new Users($this->request))->replacePhoto());
    }

    //用户注册，发送验证码（验证码为四位）
    public function sendMessageForBandUser()
    {
        return json((new Users($this->request))->sendMessageForBandUser ());
    }


}
